
#ifndef Lines_TimeLineEffect_h
#define Lines_TimeLineEffect_h

#include "SpriteEffect.h"
#include <vector>

class TimeLineEffect : public SpriteEffect
{
private:
    std::vector<SpriteEffect*> m_eEffects;
    std::vector<float> m_fDelays;
    std::vector<bool> m_bLaunched;
    
protected:
    void updateEffect(float _fPerc);
	void enableEffect(bool _bValue);
    
public:
    TimeLineEffect(bool _bEnabled = false, bool _bLoop = false);
        
    void addEffect(SpriteEffect *_eEffect, float _fDelay = 0);
    void setSpeed(float _fSpeed);
    
    void addInEffect(RenderableEntity* _ent, float _fDelay = 0.0f);
    void addOutEffect(RenderableEntity* _ent, float _fDelay = 0.0f);
};

#endif
